<?php
declare (strict_types = 1);

namespace app\controller;

use think\facade\View;

class Writer extends Common
{

    public function __construct()
    {
        parent::__construct();
    }
    /**
     * 显示资源列表
     *
     * @return \think\Response
     */
    public function index()
    {


        $where["status"] =1;
        if(!isset($where)){
            $where = 1;
        }

        $list = \app\common\model\User::where($where)
            ->order("id DESC")
            ->where("headimgurl","<>","")
            ->paginate([
                'query'=> $this->params,
            ]);

        //echo Db::name("article")->getLastSql();die;
        View::assign("list",$list);
        return  view();
    }

}
